package db_modle

type Users struct {
	Id            uint   `json:"id" gorm:"PRIMARY_KEY"`
	Phone         string `json:"phone"`
	Type          uint   `json:"type"`
	Channel       string `json:"channel"`
	Level         int    `json:"level"`
	Avatar        string `json:"avatar"`
	IsLoan        uint   `json:"id_loan" gorm:"NOT NULL"`
	IsExpiredTime int    `json:"is_expired_time" gorm:"type:varchar(255);NOT NULL"`
	CreatedAt     string `json:"created_at" gorm:"type:tinyint(1);NOT NULL`
	UpdatedAt     string `json:"updated_at" gorm:"type:tinyint(1);NOT NULL`
	DeleteAt      string `json:"delete_at" gorm:"type:tinyint(1);NOT NULL`
}

func (Users) TableName() string {
	return "users"
}
